﻿// Member.shared.cs
//

using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace MedLink2011.Web.Models
{

    public partial class Member {

        private string _password;

        [Required]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "The password must be between 6 and 20 characters long.")]
        [DataMember]
        public string Password {
            get {
                return _password;
            }
            set {
#if !SILVERLIGHT
                _password = value;
#else
                if (_password != value) {
                    ValidateProperty("Password", value);
                    _password = value;
                    RaiseDataMemberChanged("Password");
                }
#endif
            }
        }
    }
}
